/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import com.google.common.collect.Lists;
/*     */ import java.util.List;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.util.ITooltipFlag;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.item.ItemStack;
/*     */ import net.minecraft.nbt.NBTBase;
/*     */ import net.minecraft.nbt.NBTTagCompound;
/*     */ import net.minecraft.nbt.NBTTagList;
/*     */ import net.minecraft.nbt.NBTTagString;
/*     */ import net.minecraft.util.text.TextFormatting;
/*     */ 
/*     */ public class ve {
/*     */   public static String v(ItemStack a, boolean bool1, boolean bool2) {
/*  17 */     NBTTagCompound nBTTagCompound = new NBTTagCompound();
/*  18 */     a.func_77955_b(nBTTagCompound);
/*     */     
/*  20 */     return nBTTagCompound.toString();
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public static List<String> h(ItemStack a) {
/*  37 */     List<String> list = Lists.newArrayList();
/*  38 */     String str = a.func_82833_r();
/*  39 */     if (a.func_82837_s()) {
/*  40 */       str = TextFormatting.ITALIC + str;
/*     */     }
/*  42 */     str = str + TextFormatting.RESET;
/*  43 */     list.add(str);
/*  44 */     list.addAll(z(a));
/*  45 */     return list;
/*     */   }
/*     */   
/*     */   public static List<String> z(ItemStack a) {
/*  49 */     return v(a, true);
/*     */   }
/*     */   
/*     */   public static List<String> v(ItemStack a, boolean bool) {
/*  53 */     List<String> list = Lists.newArrayList();
/*     */     
/*  55 */     if (a.func_77942_o() && 
/*  56 */       a.func_77978_p().func_150297_b("display", 10)) {
/*  57 */       NBTTagCompound nBTTagCompound = a.func_77978_p().func_74775_l("display");
/*  58 */       if (nBTTagCompound.func_150299_b("Lore") == 9) {
/*  59 */         NBTTagList nBTTagList = nBTTagCompound.func_150295_c("Lore", 8);
/*  60 */         if (!nBTTagList.func_82582_d()) {
/*  61 */           for (int i = 0; i < nBTTagList.func_74745_c(); i++) {
/*  62 */             if (bool) {
/*  63 */               list.add(TextFormatting.WHITE + nBTTagList.func_150307_f(i));
/*     */             } else {
/*  65 */               list.add(nBTTagList.func_150307_f(i));
/*     */             } 
/*     */           } 
/*     */         }
/*     */       } 
/*     */     } 
/*     */ 
/*     */     
/*  73 */     return list;
/*     */   }
/*     */   
/*     */   public static void v(ItemStack a, List list) {
/*  77 */     NBTTagCompound nBTTagCompound = a.func_190925_c("display");
/*  78 */     NBTTagList nBTTagList = new NBTTagList();
/*  79 */     for (String str : list) {
/*  80 */       nBTTagList.func_74742_a((NBTBase)new NBTTagString(str));
/*     */     }
/*  82 */     nBTTagCompound.func_74782_a("Lore", (NBTBase)nBTTagList);
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean v(ItemStack itemStack1, ItemStack itemStack2) {
/*  88 */     return (itemStack1.func_77973_b() == itemStack2.func_77973_b() && itemStack1.func_77952_i() == itemStack2.func_77952_i() && ItemStack.areItemStackShareTagsEqual(itemStack1, itemStack2));
/*     */   }
/*     */   
/*     */   public static List<String> v(ItemStack a) {
/*  92 */     List<String> list = a.func_82840_a((EntityPlayer)(Minecraft.func_71410_x()).field_71439_g, 
/*  93 */         (Minecraft.func_71410_x()).field_71474_y.field_82882_x ? (ITooltipFlag)ITooltipFlag.TooltipFlags.ADVANCED : (ITooltipFlag)ITooltipFlag.TooltipFlags.NORMAL);
/*     */ 
/*     */ 
/*     */     
/*  97 */     for (int i = 0; i < list.size(); i++) {
/*  98 */       if (i == 0) {
/*  99 */         list.set(i, (a.func_77953_t()).field_77937_e + (String)list.get(i));
/*     */       } else {
/* 101 */         list.set(i, TextFormatting.GRAY + (String)list.get(i));
/*     */       } 
/*     */     } 
/*     */     
/* 105 */     return list;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ve.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */